package cn.lyd.pet.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import cn.lyd.base.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 
 * </p>
 *
 * @author lyd
 * @since 2023-01-08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PetType extends BaseDomain{


    @NotBlank
    private String name;
    @NotBlank
    private String description;

    //上级类型
    private PetType parent;

    //父类型id
    private Long parent_id;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<PetType> children = new ArrayList<>();



}
